import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { mockXHR } from '../mock'
// import { setupProdMockServer } from './mockProdServer'
// import installSvgImg from '@/plugins/img'
import '@/styles/index.scss' // global css
import './permission'
import errorLog from './utils/error-log'
import installStorePlugins from '@/store/hooks'

const app = createApp(App)
errorLog(app)
installStorePlugins(app)
// installSvgImg(app)
// console.log(import.meta.env)
if (import.meta.env.DEV) {
  mockXHR()
}
app.use(store).use(router).mount('#app')

